import request from '@/utils/request'

// 查询table表单列表
export function listForm(query) {
  return request({
    url: '/pms/form/list',
    method: 'get',
    params: query
  })
}

// 查询table表单详细
export function getForm(id) {
  return request({
    url: '/pms/form/' + id,
    method: 'get'
  })
}

// 新增table表单
export function addForm(data) {
  return request({
    url: '/pms/form',
    method: 'post',
    data: data
  })
}

// 修改table表单
export function updateForm(data) {
  return request({
    url: '/pms/form',
    method: 'put',
    data: data
  })
}

// 删除table表单
export function delForm(Id) {
  return request({
    url: '/pms/form/' + Id,
    method: 'delete'
  })
}


// 查询table表单详细
export function listFormColumn(query) {
  return request({
    url: '/pms/formDetails/list',
    method: 'get',
    params: query
  })
}

// 查询table列详细
export function getColumn(Id) {
  return request({
    url: '/pms/formDetails/' + Id,
    method: 'get'
  })
}

// 新增table列
export function addColumnForm(data) {
  return request({
    url: '/pms/formDetails',
    method: 'post',
    data: data
  })
}

// 修改table列
export function updateColumnForm(data) {
  return request({
    url: '/pms/formDetails',
    method: 'put',
    data: data
  })
}

// 删除table列
export function delColumn(Id) {
  return request({
    url: '/pms/formDetails/' + Id,
    method: 'delete'
  })
}
